package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.controller.dto.inspect.ApplyRankRequestDto;
import com.mysoft.gfyx.marketdevelop.service.ReportService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@PubService(value = "/reportPub", prefix = RequestPrefix.PUB)
public class ReportPubController {
    @Resource
    private ReportService reportService;

    @PubAction(value = "/applyRank", method = RequestMethod.POST)
    public Object applyRank(@RequestBody ApplyRankRequestDto dto) {
        return reportService.applyRank(dto);
    }
}
